lower,upper=map(int,input().split())
if lower>upper:
    print("Invalid.")
else:
    print("fahr celsius")
    for i in range(lower,upper+1,2):
        c=5*(i-32)/9
        #print("%d%6.1f"%(i,c))
        print("{:d}{:>6.1f}".format(i,c))